package com.example.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by Intellij IDEA<br>
 *
 * @author Planifolia.Van
 * @version 1.0
 * @date 2022/11/15 19:01
 */
@Component
@ConfigurationProperties("czy.api.message")
public class CzyConfig {
    private String appid;
    private String url;
    private String key;

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return "CzyConfig{" +
                "api='" + appid + '\'' +
                ", url='" + url + '\'' +
                ", key='" + key + '\'' +
                '}';
    }
}
